package com.ruoyi.business.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 实验台对象 lab
 * 
 * @author qiancheng
 * @date 2025-06-13
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("lab")
public class Lab extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 实验台ID */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /** 实验台名称（如燃烧实验平台、传热传质实验平台 ） */
    @Excel(name = "实验台名称", readConverterExp = "如=燃烧实验平台、传热传质实验平台")
    @TableField(value = "name")
    private String name;

    /**
     * 所属台架总数
     */
    @TableField(exist = false)
    private int sumCount;

    /**
     * 所属运行台架总数
     */
    @TableField(exist = false)
    private int ingCount;
}
